﻿using Martin.WcfService.Contracts;
using System.ServiceModel;
namespace Martin.WcfService.Services
{
    public class CalculatorService : ICalculator
    {
        #region ICalculator Members

        public void Add(double x, double y)
        {
            double result = x + y;
            ICallback callback = OperationContext.Current.GetCallbackChannel<ICallback>();
            callback.DisplayResult(x, y, result);
        }

        //public double Subtract(double x, double y)
        //{
        //    return x - y;
        //}

        //public double Multiply(double x, double y)
        //{
        //    return x * y;
        //}

        //public double Divide(double x, double y)
        //{
        //    return x / y;
        //}

        #endregion
    }
}
